<?php

include "lib/gdclient.php";


//测试创建空头像

$gdclient = new gdclient();

//-------------------------------------
// 输出空白的高宽400 高600的图片
$gdclient->createEmptyImage(400,600,"eeeeee",0);

//-------------------------------------

//图像上输出文字
// 坐标点输出
//$gdclient->imageText(21,0,10,10,'msyh.ttc',"这是一个测试",'000000');

// 文字在在x轴上剧中显示
//$gdclient->imageTextXCenter(21,0,0,'msyh.ttc',"这是一个测试",'000000');

$gdclient->imageTextYCenter(21,0,0,'msyh.ttc',"这是一个测试",'000000');
$gdclient->thumb(800,100,1);
$gdclient->outputBower('png');